Program in Python to check whether a number exist in range or not